package cn.seqdata.rpt.simple;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import cn.seqdata.jpa.JpaAuditableObject;

public class OrderedName {
	@JsonInclude(Include.NON_EMPTY)
	public String name;
	@JsonInclude(Include.NON_NULL)
	public Integer orderNo;

	public OrderedName() {
	}

	public OrderedName(String name) {
		this.name = name;
	}

	public OrderedName(String name, Integer orderNo) {
		this(name);
		this.orderNo = orderNo;
	}

	public OrderedName(JpaAuditableObject object) {
		this(object.getName(), object.getOrderNo());
	}
}
